package com.lyk.service.impl;

import java.util.List;
import java.util.Map;

import com.common.entity.A_timeRules;
import com.common.entity.PageBean;
import com.lyk.dao.A_timeRulesDao;
import com.lyk.dao.impl.A_timeRulesDaoImpl;
import com.lyk.service.A_timeRulesService;

public class A_timeRulesServiceImpl implements A_timeRulesService {
	private A_timeRulesDao timeRulesDao = new A_timeRulesDaoImpl();
	@Override
	public List<A_timeRules> findByCondition(Map<String, Object> mp) {
		return timeRulesDao.findByCondition(mp);
	}

	@Override
	public A_timeRules findById(Integer n) {
		return timeRulesDao.findById(n);
	}

	@Override
	public int changetimeRules(A_timeRules timeRules) {
		return timeRulesDao.changetimeRules(timeRules);
	}

	@Override
	public int delA_adminer(Integer n) {
		return timeRulesDao.delA_timeRules(n);
	}

	@Override
	public int savetimeRules(A_timeRules timeRules) {
		return timeRulesDao.savetimeRules(timeRules);
	}

	@Override
	public PageBean<A_timeRules> findPageByCondition(int pageIndex,
			int pageSize, Map<String, Object> map) {
		return timeRulesDao.findPageByCondition(pageIndex, pageSize, map);
	}
	
}
